# == Schema Information
# Schema version: 8
#
# Table name: items
#
#  id          :integer(11)   not null, primary key
#  link        :string(255)   default(), not null
#  title       :string(255)   default(), not null
#  description :text
#  date        :datetime
#  feed_id     :integer(11)   not null
#

class Item < ActiveRecord::Base

  belongs_to :feed
  has_and_belongs_to_many :users

  def div_id
    "item_#{id}"
  end
end
